@primary-color: #2f63ae;

.color-primary {
  color: @primary-color;
}

.color-red {
  color: #e83617;
}

.color-orange {
  color: #ffa500;
}

.color-green {
  color: #3eae6d;
}

.color-grey {
  color: #a5a5a5;
}

.color-muted {
  color: #959595;
}

a {
  color: #2f63ae;
}

.gap-20 {
  display: flex;
  gap: 20px;
}

.mgr-10 {
  margin-right: 10px;
}

.mgl-10 {
  margin-left: 10px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-content: center;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
  'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
  sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

// 容器样式
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  
  @media (max-width: 768px) {
    padding: 0 15px;
  }
}

// 响应式工具类
@media (max-width: 768px) {
  .hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hidden-desktop {
    display: none !important;
  }
}

// 通用间距类
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

// 文本对齐
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

// 文本颜色
.text-primary { color: #1890ff !important; }
.text-success { color: #52c41a !important; }
.text-warning { color: #faad14 !important; }
.text-danger { color: #ff4d4f !important; }
.text-muted { color: #666 !important; }

// 背景颜色
.bg-primary { background-color: #1890ff !important; }
.bg-success { background-color: #52c41a !important; }
.bg-warning { background-color: #faad14 !important; }
.bg-danger { background-color: #ff4d4f !important; }
.bg-light { background-color: #f5f5f5 !important; }

// 边框
.border { border: 1px solid #d9d9d9 !important; }
.border-top { border-top: 1px solid #d9d9d9 !important; }
.border-bottom { border-bottom: 1px solid #d9d9d9 !important; }
.border-left { border-left: 1px solid #d9d9d9 !important; }
.border-right { border-right: 1px solid #d9d9d9 !important; }

// 圆角
.rounded { border-radius: 6px !important; }
.rounded-circle { border-radius: 50% !important; }

// 阴影
.shadow { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important; }
.shadow-lg { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; }

// 过渡效果
.transition { transition: all 0.3s ease !important; }

// 清除浮动
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
